package com.ff.xyh.common.vo.message;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ff.xyh.common.entity.message.RoomMessage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Auther FF
 * @Date 2022年 12月 03日
 * @Time 16:06
 */

@Data
@Accessors(chain = true)
@ApiModel(value="前端消息体对象")
public class RoomMessageVo {

    @ApiModelProperty(value = "消息id")
    private String id;
    @ApiModelProperty(value = "群聊id")
    private String roomId;

    @ApiModelProperty(value = "帖子id")
    private String postId;
    @ApiModelProperty(value = "帖子类型")
    private Integer postType;
    @ApiModelProperty(value = "帖子标题")
    private String postTitle;
    @ApiModelProperty(value = "帖子封面")
    private String postCover;
    @ApiModelProperty(value = "未读消息数")
    private Integer unreadCount;
    @ApiModelProperty(value = "最新的消息")
    private RoomMessageVo lastMessage;


    @ApiModelProperty(value = "消息发出者id")
    private String userId;
    @ApiModelProperty(value = "消息发出者昵称")
    private String userNickname;
    @ApiModelProperty(value = "消息发出者头像")
    private String userAvatar;
    @ApiModelProperty(value = "消息内容")
    private String message;
    @ApiModelProperty(value = "消息给userId")
    private String toUserId;
    @ApiModelProperty(value = "在线人数")
    private Integer userNumber;
    @ApiModelProperty(value = "举报数 满10就屏蔽并紧急处理")
    private Integer complaintNumber;
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreated;


}
